# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-libwhisker2
_pkgname=libwhisker2
pkgver=2.5
pkgrel=10
pkgdesc="A full-featured Perl library used for HTTP-related functions, including vulnerability scanning and exploitation."
arch=('any')
url='http://sourceforge.net/projects/whisker/'
license=('BSD')
depends=('perl' 'perl-net-ssleay')
options=('!emptydirs')
source=("https://downloads.sourceforge.net/project/whisker/libwhisker/$pkgver/$_pkgname-$pkgver.tar.gz"
        'Makefiles.patch')
sha512sums=('ea3cfa7658048b23d4fd773db9ee7fde32758096cf7491d309390247648b7635952d734a0918f53109de37cdd87b675843320539db727fd107e81647b13bce10'
            '8c2ef217e1caf9f18c5db12030b08fce3051a301e7d75ab4cb4a420806c273ee2982e0100b2373fc24e048fa7afa7651646589ee47016bf0ea07ae50dd867264')

build() {
  cd "$_pkgname-$pkgver"

  cat "$srcdir"/Makefiles.patch | patch -p1

  make lib
}

package() {
  cd "$_pkgname-$pkgver"

  make DESTDIR="$pkgdir" MAN3PATH=/usr/share/man/man3 install
}

